<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - AI 画廊</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://unpkg.com/tdesign-miniprogram@1.2.2/dist/style/index.wxss">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f5f5f5;
            color: #333;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            height: 100vh;
            overflow-y: auto;
        }
        /* TDesign 风格模拟 */
        .t-header {
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 500;
            background-color: #fff;
            position: sticky;
            top: 0;
            z-index: 10;
            border-bottom: 1px solid #eee;
        }
        .t-bottom-bar {
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: #fff;
            border-top: 1px solid #eee;
            z-index: 10;
        }
        .t-tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            height: 100%;
            color: #888;
        }
        .t-tab-item.active {
            color: #0052d9;
        }
        .t-tab-icon {
            font-size: 24px;
            margin-bottom: 2px;
        }
        .t-tab-text {
            font-size: 12px;
        }
        .t-fab {
            position: fixed;
            bottom: 70px;
            right: 20px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background-color: #0052d9;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 4px 8px rgba(0, 82, 217, 0.3);
            z-index: 11;
        }
        .t-grid {
            display: flex;
            flex-wrap: wrap;
            margin: 0 4px;
            padding-bottom: 70px;
        }
        .t-grid-item {
            width: 50%;
            padding: 4px;
            box-sizing: border-box;
        }
        .t-card {
            background-color: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .t-card-image {
            width: 100%;
            height: 180px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
        .t-card-content {
            padding: 8px 12px;
        }
        .t-card-title {
            font-size: 14px;
            line-height: 1.4;
            color: #333;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .status-bar {
            height: 44px;
            background-color: #fff;
        }
    </style>
</head>
<body>
    <div class="status-bar"></div>
    <div class="t-header">AI 画廊</div>
    
    <div class="t-grid">
        <!-- 图片卡片 -->
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=1');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">日落时分的海滩，波浪轻拍沙滩，金色的阳光洒在海面上</div>
                </div>
            </div>
        </div>
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=2');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">雪山下的森林小木屋，炊烟袅袅，宁静而祥和</div>
                </div>
            </div>
        </div>
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=3');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">未来科技城市，高楼林立，飞行器穿梭，霓虹闪烁</div>
                </div>
            </div>
        </div>
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=4');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">古代东方仙境，山水画风格，亭台楼阁，云雾缭绕</div>
                </div>
            </div>
        </div>
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=5');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">动漫风格的少女站在樱花树下，微风吹拂，花瓣飘落</div>
                </div>
            </div>
        </div>
        <div class="t-grid-item">
            <div class="t-card">
                <div class="t-card-image" style="background-image: url('https://picsum.photos/300/300?random=6');"></div>
                <div class="t-card-content">
                    <div class="t-card-title">宇宙星空中的行星与星云，色彩斑斓，梦幻壮观</div>
                </div>
            </div>
        </div>
    </div>

    <!-- 悬浮按钮 -->
    <div class="t-fab">+</div>

    <!-- 底部导航栏 -->
    <div class="t-bottom-bar">
        <div class="t-tab-item active">
            <div class="t-tab-icon">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z" fill="currentColor"/>
                </svg>
            </div>
            <div class="t-tab-text">首页</div>
        </div>
        <div class="t-tab-item">
            <div class="t-tab-icon">
                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z" fill="currentColor"/>
                </svg>
            </div>
            <div class="t-tab-text">我的</div>
        </div>
    </div>
</body>
</html> 